package com.mfy.feign;

import com.mfy.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("admin-user")
public interface UserFeignClient {
    @GetMapping("/user/selectOneById/{id}")
    public User selectById(@PathVariable int id);

    @GetMapping("/user/selectByName/{name}")
    public List<User> selectByName(@PathVariable String name);
}
